home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / database / wssi529a.zip / STARTWSS.BAT < prev    next >
DOS Batch File  |  1993-08-29  |  2KB  |  50 lines

  1. @echo off
  2. rem Startup batch file for Wssindex.
  3.  
  4. rem Edit as necessary for your configuration.  Lines beginning with 'rem'
  5. rem are comments.  Removing them will slightly decrease execution time.
  6.  
  7. rem Delete this block of lines after inserting the appropriate paths.
  8.     echo You must edit startwss.bat to insert paths appropriate for your setup.
  9.     goto Done
  10.  
  11. rem Sample batch file for starting Wssindex.  Arguments are configuration
  12. rem and database file names.
  13.  
  14. rem This batch file assumes that you have sufficient environment space.
  15. rem If not, you may end up with a strange prompt.
  16.  
  17. rem The next 2 linesare only for Wssindex/Extended.  Wssindex/Extended is
  18. rem unable to change the prompt in a DOS shell, so the 2 SETs save the old
  19. rem prompt and then redefine the prompt.
  20.  
  21.     set oldprompt=%PROMPT%
  22.     set prompt=Type 'EXIT' to return to Wssindex$_%PROMPT%
  23.  
  24. rem These two SETs define default configuration and database file names.
  25. rem Change as necessary for your disk directory structure.  Or, put the
  26. rem fully qualified file names in the program invocation and omit these
  27. rem environment variables entirely.
  28.  
  29.     set wssicnf=c:\wssindex\wssindex.cnf
  30.     set wssidir=c:\wssindex\wssindex.dir
  31.  
  32. rem This command starts Wssindex.  If you always use the same configuration
  33. rem file, put its name in place of %1 and change %2 to %1.  Similarly, if you
  34. rem have only one database file, it may be explicitly named as the last
  35. rem argument.  An example of these changes is included as a remark before
  36. rem the command to start Wssindex.  Replace 'wssindex' with the actual name
  37. rem of the executable, which will be either WSSInnn, WSSInnnD or WSDPMnnn,
  38. rem where nnn is the rem version number.  (Of course, you may also rename the
  39. rem executable file to WSSINDEX.EXE.)
  40.  
  41.     wssindex %1 %2
  42.  
  43. rem Restore the original prompt and clean up the environment variables used
  44.     set wssicnf=
  45.     set wssidir=
  46.     set prompt=%OLDPROMPT%
  47.     set oldprompt=
  48.  
  49. :Done
  50.